package com.cn.pojo;

import javax.sql.DataSource;
import java.util.HashMap;
import java.util.Map;

/**
 * 读取配置文件后 封装成的对象
 */
public class Configuration {

    // 数据源
    private DataSource dataSource;

    // mapper集合
    // key: statementId, value: 封装好的mapperdStatement
    Map<String, MapperdStatement> statementMap = new HashMap<>();

    public DataSource getDataSource() {
        return dataSource;
    }

    public void setDataSource(DataSource dataSource) {
        this.dataSource = dataSource;
    }

    public Map<String, MapperdStatement> getStatementMap() {
        return statementMap;
    }

    public void setStatementMap(Map<String, MapperdStatement> statementMap) {
        this.statementMap = statementMap;
    }
}
